<style type="text/css">
    @media (max-width: 375px) {
        .edit-form tr td input{width:100%;}
        .edit-form tr th:first-child,.edit-form tr td:first-child{
            width:20%;
        }
        .edit-form tr th:last-child,.edit-form tr td:last-child{
            display: none;
        }
    }
</style>
<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        <div class="panel-lead">
            <table class="table" style="width:60%; border:1px;">
                <thead>
                    <tr>
                        <th width="50%"></th>
                        <th width="50%"></th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>
                            <b>商家ID：</b>{$data['business_id']}
                        </td>
                        <td>
                            <b>手机号：</b>{$data['business_phone']}
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <b>认证状态：</b>
                            <?php
                                if($data['cert_status'] == 1){
                                    $cert_status = '已认证';
                                }else if($data['cert_status'] == 2){
                                    $cert_status = '未认证';
                                }else{
                                    $cert_status = '未认证';
                                }
                                echo $cert_status;
                            ?>
                        </td>
                    </tr>
                </tbody>
                <tfoot>
                    <tr>
                        <td></td>
                        <td>

                        </td>
                        <td></td>
                    </tr>
                </tfoot>
            </table>
            <div>
                <p><span>钱包余额</span>：<span style="font-size: 16px; font-weight: 800;">￥{$data['cash_amount']}</span></p>
                <p><a href="javascript:;" class="btn btn-info btn-setwallet" title="调整钱包金额"><i class="fa"></i>调整钱包金额</a></p>
            </div>
        </div>  
    </div>

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="basic">
                <div class="widget-body no-padding">
                    <form id="basic-form" class="edit-form form-horizontal nice-validator n-default n-bootstrap" role="form" data-toggle="validator" method="POST" action="{:url('Task/setbusiness')}" novalidate="novalidate">
                        <table class="table table-striped">
                            <thead>
                                <tr>
                                    <th width="35%"></th>
                                    <th width="65%"></th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php foreach($list as $val):?>
                                <tr>
                                    <td>
                                        <p><b>{$val['change_matters_text']}</b>
                                            <?php if(!empty($val['task_no'])):?>
                                            <sapn style="font-size:10px;">({$val['task_no']})</sapn>
                                            <?php endif;?>
                                        </p>
                                        <p>{$val['createtime']|date="Y-m-d H:i:s",###}</p>
                                    </td>
                                    <td>
                                        <?php echo $val['change_type'] == 1 ? '-' : '+'; ?>{$val['change_amount']}
                                    </td>
                                </tr>
                                <?php endforeach;?>
                            </tbody>
                            <tfoot>
                                <tr>
                                    <td></td>
                                    <td>

                                    </td>
                                    <td></td>
                                </tr>
                            </tfoot>
                        </table>
                    </form>
                </div>
            </div>

        </div>
    </div>
</div>

<script type="text/html" id="setwallet">
    <div style="margin-top: 20px;">
        <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="{:url('business/setwallet')}">
            <input name="business_id" type="hidden" value="{$data['business_id']}">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('调整金额')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-refusal_reason" data-rule="required" class="form-control" name="adjust_price" type="text" value="">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('说明')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <textarea id="c-task_desc" data-rule="required" class="form-control " rows="5" name="adjust_desc" cols="50"></textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('调整方式')}:</label>
                <div class="col-xs-12 col-sm-8 js-check">
                    增加：<input type="radio" name="adjust_way" value="0"  checked>&nbsp; &nbsp;
                    减少：<input type="radio" name="adjust_way" value="1">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2"></label>
                <div class="col-xs-12 col-sm-8">
                    <button type="submit" class="btn btn-success">{:__('提交')}</button>
                </div>
            </div>
        </form>
    </div>
    
</script>